export ARCH=arm64
export CROSS_COMPILE=aarch64-buildroot-linux-gnu-
# export CROSS_COMPILE=aarch64-linux-
obj-m += spinlock.o
KDIR :=/home/treasure/linux_sdk/OK3588_Linux_fs/kernel
PWD ?= $(shell pwd)
all:
	make -C $(KDIR) M=$(PWD) modules

clean:
	make -C $(KDIR) M=$(PWD) clean

